<?php
@session_start();
$link=mysql_connect("localhost", "root", "");

if(!$link){
echo "not connected to database";
}

mysql_select_db("techworks");

$id = $_SESSION['plan_id'];
$missionStatment= $_POST['mission-statement'];
$principalMem= $_POST['principal-members'];
$legalStructure= $_POST['legal-structure'];



$q= mysql_query ("insert into tw_company_desc(`plan_id`, `mission-statement`, `principal-members`, `legal-structure` )
 values ('$id','$missionStatment', '$principalMem', '$legalStructure')");

if($q){
	header("location: ../incubatee/wizard.php#tab_tab3 ");
	
	$_SESSION['ad']= "success";
					
}else {
	//echo  mysql_error();
	header("location: ../incubatee/wizard.php#tab_tab3");
	
	
}

?>


